package com.ssm.common;

import java.util.List;
import java.util.Map;

import com.mybatis.entity.Page;
import com.ssm.exception.ServiceException;


public interface CommonService<T> {
    public void addEntrity(T t) throws ServiceException;
    public void addEntrityBatch(List<T> list) throws ServiceException;
    public void updateEntrity(T t) throws ServiceException;
    public void updateEntrityByMap(Map<String, Object> map) throws ServiceException;
    public void deleteEntrity(String id) throws ServiceException;
    public void deleteEntrityBatch(List<String> ids) throws ServiceException;
    public T queryById(String id) throws ServiceException;
    public List<T> queryByEntrity(T t) throws ServiceException;
    public Page<T> queryByPageInfo(Map<String, Object> map, int start, int size) throws ServiceException;
}
